package com.jungle.client.control;

import javafx.geometry.Point2D;

import javafx.scene.input.InputMethodRequests;
public class TextField extends javafx.scene.control.TextField {
    public TextField() {
        super();
        setInputMethodRequests(getInputMethodRequests0());
    }

    public InputMethodRequests getInputMethodRequests0() {
        return new InputMethodRequests() {
            @Override
            public Point2D getTextLocation(int offset) {
                return new Point2D(0, 0);
            }

            @Override
            public int getLocationOffset(int x, int y) {
                return 0;
            }

            @Override
            public void cancelLatestCommittedText() {}

            @Override
            public String getSelectedText() {
                return "";
            }
        };
    }
}
